﻿using System.Collections;
using System;

namespace Mota.XMLControls
{
    public abstract class GuiMaskText : GuiControl
    {
        public override void Add(GuiControl guiControl)
        {
            //empty
        }

        public override IEnumerator GetEnumerator()
        {
            return null;
        }

        public virtual bool IsValid
        {
            get
            {
                return true;
            }
        }
        public abstract String Mask { get; set; }
        public override void SetPropertyValue(String properyName, String propertyValue)
        {
            base.SetPropertyValue(properyName, propertyValue);

            switch (properyName)
            {
                case "Mask":
                    Mask = propertyValue;
                    break;
            }
        }
        public override void Accept(GuiVisitor visitor)
        {
            visitor.Visit(this);
        }

    }

}
